$(function() {
			$("#left").load("../common/gover-left.html");
				var userId = sessionStorage.getItem("userId");
				var applyId = parseQueryString().applyId;
				my_vue = new Vue({
					el: '#vue_info',
					data: {
						apply:{
							commitTimeLimit:"",
							area:"",
							preCode:"",
							cailiaoWay:"",
							cailiaoReturnWay:"",
							legalTimeLimit:"",
							repoName:"",
							expressCode:"",
							repoCode:"",
							dept:"",
							address:'',
							state:'',
							map:{
								notSubmit:[],
								hasSubmit:[]
								},
							createAt:''
						},
						showBz:false,
						grAddress:{
							name:'',
							mobile:'',
							address:''
						}
					},
					methods: {
						exitProcess: function(op) {
							if(op == 'index') {
								$.showConfirm({
									'title': '',
									'content': '是否退出办理？',
									"showClose": false,
									"sureLabel": "取消",
									"cancelLabel": "退出办理",
									'cancel': this.toIndex
								});
							} else if(op == 'scanner') {
								$.showConfirm({
									'title': '',
									'content': '是否退出办理？',
									"showClose": false,
									"sureLabel": "取消",
									"cancelLabel": "退出办理",
									'cancel': this.toScanner
								});
							} else if(op == 'zhengwu') {
								$.showConfirm({
									'title': '',
									'content': '是否退出办理？',
									"showClose": false,
									"sureLabel": "取消",
									"cancelLabel": "退出办理",
									'cancel': this.toZhengwu
								});
							}
						},
						doMask: function(op) {
							if(op == '1') {
								window.location = ""
							} else if(op == "2") {

							} else {
								window.location = "feedback.html"
							}
						},
						toIndex: function() {
							window.location = "../clientDown/index.html"
						},
						toScanner: function() {
							window.location = "../clientDown/scannerIndex.html"
						},
						toZhengwu: function() {
							window.location = "../clientDown/selfHelpBusinessChoose.html"
						},
						goBack: function() {
							window.location = "index.html"
						},
						exitAttendTo: function() {
							$.openDialog({
								'title': '',
								"showClose": false,
								'width': 824,
								'height': 460,
								'url': '../clientDown/selfHelpExitChoose.html'
							});
						},
						editApply:function(){
							window.location="../gover/selfHelpAttachment.html?applyId="+applyId+"&fromSpace=true";
						},
						getApplyDetail: function() {
							this.$http.get("http://192.168.10.45:8888/oc_tengzhou/space/getApplyDetail.do", {
								preId: applyId
							}).then(function(result) {
								if(result.data.success) {
									console.log(toJson(result.data));
									this.apply = result.data.data;
									if(isNotEmpty(this.apply.address)){
										var arr = this.apply.address.split(";");
										this.grAddress.name=arr[0];
										this.grAddress.mobile=arr[1];
										this.grAddress.address=arr[2];
									}
									if(this.apply.state.indexOf('补正')>=0){
										this.showBz=true;
									}
								}
								console.log(toJson(result.data));

							}, function() {
								console.log('保存接口失败:' + toJson(result));
							})
						}

					},
					ready: function() {
						//初始化获得总页面数和列表数据
						this.getApplyDetail();
					}
				});
			});